package com.kun.kunes.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * @author kun.li
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class JdContent implements Serializable {
    //唯一ID
    @Id
    private String id;

    /**
     * 图片
     */
    private String img;
    /**
     * 价格
     */
    private String price;
    /**
     * 描述
     */
    private String name;


    /**
     * 出版社
     */
    private String shop;

    public static JdContent create() {
        return new JdContent();
    }

}
